<?php
html::printPath(
    array(
        'registration.form-title' => 'admin/registration/listing',
        format::personFullName($person) => '',
        'registration.idCardEdit-title' => ''
    ),
    'registration.idCardEdit-desc'
);
$msg->printMessages();

$fb = new FormBuilder('person', $person);
$fb->setAction('/admin/registration/idCardSave');
$fb->display('full_name')->value(format::personFullName($person));
$fb->display('birth_date')->value(format::date($person['birth_date']));
$fb->text('idcard_number');
$fb->comboBox('idcard_type', $idcardTypeOptions);
$fb->submitButton();
$fb->write();
?>

<script type="text/javascript">focusFieldInDialogOpenByAjax('idcard_number');</script>
